<template>

    <h3>Main</h3>
    <p>{{ search }}</p>
    <Search @search="get"/>
</template>


<script>
import Search from './Search.vue';

export default{
    data(){
        return{
            search:""
        }
    },

    methods:{
        get(data){
            this.search=data
        }
    },
   components:{
    Search
   }
}

</script>